<%--
  Created by IntelliJ IDEA.
  User: 17537
  Date: 2023/7/13
  Time: 20:12
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <base href="<%= basePath %>"/>
    <title>顾客会员等级信息</title>
    <!--[if lt IE 9]>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/html5shiv.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/respond.min.js"></script>
<![endif]-->
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css"
          href="<%= basePath %>static/backstage/static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/static/h-ui.admin/css/style.css"/>
    <!--[if IE 6]>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i><a href="olalashop/sysAccountApi/index">首页</a>
    <span class="c-gray en">&gt;</span> 消费者会员信息详情
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="page-container">
    <div class="text-c"> 日期范围：
        <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'endTime\')||\'%y-%M-%d\'}' })" id="beginTime"
               class="input-text Wdate" style="width:120px;">
        -
        <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'beginTime\')}',maxDate:'%y-%M-%d' })"
               id="endTime" class="input-text Wdate" style="width:120px;">
        <input type="text" class="input-text" style="width:250px" placeholder="输入会员名称、电话、邮箱" id="userInfo"
               name="userInfo">
        <button type="submit" class="btn btn-success radius" id="searchBtn" name=""><i class="Hui-iconfont">&#xe665;</i>
            搜用户
        </button>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="l">
			<a href="javascript:;" class="btn btn-danger radius">
			<i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
			<a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')"
               class="btn btn-primary radius">
				<i class="Hui-iconfont">&#xe600;</i> 添加用户</a></span>
        <span class="r">共有数据：<strong>${customerInfomations.size()}</strong> 条</span>
    </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="5%"><input type="checkbox" id="checkAll" name="checkAll" value=""></th>
                <th width="12%">客户ID</th>
                <th width="5%">用户名</th>
                <th width="5%">真实姓名</th>
                <th width="5%">性别</th>
                <th width="5%">所在城市</th>
                <th width="5%">积分</th>
                <th width="5%">余额</th>
                <th width="5%">会员</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${customerInfomations}" var="user">
                <tr>
                    <td><input type="checkbox"></td>
                    <td>${user.customerId}</td>
                    <td>${user.customerName}</td>
                    <td>${user.realName}</td>
                    <td>
                        <c:choose>
                            <c:when test="${'1'.equals(user.sex)}">
                                <span><h5>男</h5></span>
                            </c:when>
                            <c:when test="${'2'.equals(user.sex)}">
                                <span><h5>女</h5></span>
                            </c:when>
                            <c:otherwise>
                                <span><h5>未设置</h5></span>
                            </c:otherwise>
                        </c:choose>
                    </td>
                    <td>${user.systemCity.cityName}</td>
                    <td>${user.userPoint}</td>
                    <td>${user.customerBalance}</td>
                    <td>${user.CLevelInfo.levelName}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript"
        src="<%= basePath %>static/backstage/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/laypage/1.2/laypage.js"></script>

</body>
</html>
